package com.gitee.sop.layui.adminserver.module.background.system.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gitee.sop.layui.adminserver.module.background.system.entity.IsvKeys;
import com.gitee.sop.layui.adminserver.module.background.system.mapper.IsvKeysMapper;
import com.gitee.sop.layui.adminserver.module.background.system.service.IsvKeysService;
import org.springframework.stereotype.Service;

/**
 * @author: Admin
 * @date: 2021/3/25
 * @description:
 * @copyright: 重庆万蓝兴科技有限公司
 */
@Service
public class IsvKeysServiceImpl extends ServiceImpl<IsvKeysMapper, IsvKeys> implements IsvKeysService {

    @Override
    public IsvKeys getByAppKey(String appKey) {
        IsvKeys isvKeys = this.getOne(new QueryWrapper<IsvKeys>().lambda().eq(IsvKeys::getAppKey, appKey));
        return isvKeys;
    }
}
